import {httpPost} from '@/utils/fetch'

// 添加地址
export function addUserAddress(params) {
    return httpPost({
      url: '/applet/myAddressManager/addUserAddress',
      method: 'POST',
      data: params
    })
}

// 地址列表
export function selectMyAddressList(params) {
    return httpPost({
      url: '/applet/myOrder/selectMyAddressList',
      method: 'POST',
      data: params
    })
}
//用户删除自己的地址
export function delUserAddress(params) {
  return httpPost({
    url: '/applet/myAddressManager/delUserAddress',
    method: 'POST',
    data: params
  })
} 
//用户修改自己的地址
export function updateUserAddress(params) {
  return httpPost({
    url: '/applet/myAddressManager/updateUserAddress',
    method: 'POST',
    data: params
  })
} 
//用户对订单设置地址
export function setOrderAddress(params) {
  return httpPost({
    url: '/applet/myOrder/setOrderAddress',
    method: 'POST',
    data: params
  })
} 
//用户将一个地址设为默认地址
export function setDefaultAddress(params) {
  return httpPost({
    url: '/applet/myAddressManager/setDefaultAddress',
    method: 'POST',
    data: params
  })
} 